/********************************** (C) COPYRIGHT *******************************
 * File Name          : main.c
 * Author             : WCH
 * Version            : V1.0.0
 * Date               : 2020/04/30
 * Description        : Main program body.
 * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
 * SPDX-License-Identifier: Apache-2.0
 *******************************************************************************/
#include <stdio.h>
#include "exti_button.h"
#include "gpio_config.h"
#include "debug.h"
#include "ledflashmode.h"

int main(void)
{
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    Delay_Init();
    USART_Printf_Init(115200);

    GPIO_ControlLedLevel_INIT();
    ButtonEventInterruptInit();

    while(1)
    {
            LedBlink();
    }
}
